package com.itheima.job5;

import org.junit.Test;

import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.ResourceBundle;

public class TestDemo {
    @Test
    public void testDemo() throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, IllegalAccessException {
        ResourceBundle res = ResourceBundle.getBundle("config");
        Class<?> clz = Class.forName(res.getString("className"));
        Method run = clz.getMethod("run");
        run.invoke(new DmoClass());
    }
}
